/**
 * @author shaosong
 * @description
 */
import React from "react";
import { MessageContext } from "./context";
import Message from "./Message";

export class MessageProps {}

const MessageMain: React.FC<MessageProps> = (props) => {
  return React.useMemo(
    () => (
      <MessageContext.Provider>
        <Message />
      </MessageContext.Provider>
    ),
    []
  );
};

MessageMain.defaultProps = new MessageProps();
export default MessageMain;
